package com.apache.portal.weixin.core.manager.impl.parser;

import org.jdom.Element;
import org.jdom.JDOMException;

import com.apache.portal.weixin.core.manager.impl.WxRecvMsgBaseParser;
import com.apache.portal.weixin.entity.recv.WxRecvMsg;
import com.apache.portal.weixin.entity.recv.WxRecvPicMsg;

/**
  * description: 图片消息转换代理接口实现 
  * @author Hou DaYu 创建时间：下午05:35:53
 */
public class WxRecvPicMsgParser extends WxRecvMsgBaseParser {

	protected WxRecvPicMsg parser(Element root, WxRecvMsg msg) throws JDOMException {
		return new WxRecvPicMsg(msg, getElementText(root, "PicUrl"), getElementText(root, "MediaId"));
	}
}
